/* 
 * To change this template, choose Tools | Templates
 * 基于JQ
 */

function  hightlight(){

    var arr=$("pre[class*='sh_']")
    if(arr.length>0){
        l=arr.length-1
        $(' <link href="/js/shjs/css/sh_vim.css"   rel="stylesheet" type="text/css">').appendTo("head");
        $.getScript("http://"+document.location.host+"/js/shjs/sh_main.min.js");
        arr.each(function(k,v){
            tem="http://"+document.location.host+'/js/shjs/lang/'+v.className+".js"
            
   
           
            if(k==l){
                $.getScript(tem,function(){
                    sh_highlightDocument();
               

                });
            }else{
                $.getScript(tem);
            }
           

        })

    }



}
